package cn.jmz.micpro.common.enums.user;

/**
 * cn.jmz.micpro.common.enums
 *
 * @author JMZ
 * @date 2021/12/13 21:43
 */
public enum UserEnum {

    EXIST("200","登录用户已存在，请重新更换登录用户！"),
    SMS_ERROR("200","验证码错误！"),
    MOBILE_NOT_EXIST("200","该手机号暂未注册！"),
    LOGIN_FAIL("200","登录用户或登录密码错误！");

    private final String code;
    private final String msg;

    UserEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    @Override
    public String toString() {
        return String.format("（%s）: %s",code,msg);
    }
}
